package com.linxb.client;

import com.linxb.client.config.FeignConfig;
import com.linxb.client.hystrix.HiHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: linxubin
 * @Description:
 * @Date: Created in 2018-06-30 19:11
 * @modified by:
 **/
@FeignClient(value = "eureka-client",configuration = FeignConfig.class,fallback = HiHystrix.class)
public interface EurekaFeignClient {
    @GetMapping("/hi")
    String sayHiFromClientEureka(@RequestParam(value = "name") String name);
}
